//
//  LeftViewTableViewCell.m
//  悦享
//
//  Created by dllo on 16/3/18.
//  Copyright © 2016年 张洪国. All rights reserved.
//

#import "LeftViewTableViewCell.h"

@implementation LeftViewTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLabel1 = [[UILabel alloc] init];
        [self.contentView addSubview:_titleLabel1];
        
        self.view1 = [[UIView alloc] init];
        [self.contentView addSubview:_view1];
    }
    return self;
}

- (void)layoutSubviews{
    _titleLabel1.frame = CGRectMake(20, 20, 80, 40);
    _titleLabel1.textColor = [UIColor lightGrayColor];
    _titleLabel1.textAlignment = NSTextAlignmentCenter;
    
    _view1.frame = CGRectMake(10, self.frame.size.height - 5, self.frame.size.width - 20, 0.5);
    _view1.backgroundColor = [UIColor grayColor];
    
    self.layer.transform = CATransform3DMakeRotation(2, 0, 1, 0);
    [UIView animateWithDuration:0.5 animations:^{
        self.layer.transform = CATransform3DMakeRotation(0, 0, 0, 0);
    }];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
